/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.lczyfz.wisdom.modules.platform.dao;

import com.lczyfz.wisdom.common.persistence.CrudDao;
import com.lczyfz.wisdom.common.persistence.annotation.MyBatisDao;
import com.lczyfz.wisdom.modules.platform.entity.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * addressDAO接口
 * @author css
 * @version 2019-09-26
 */
@MyBatisDao
public interface AddressDao extends CrudDao<Address> {
    public List<Address> findAddressByUser(@Param(value = "userId") String userId);

    public int updateIsDefault(@Param(value = "id") String id,@Param(value = "isdefault") String isdefault);

    public int deleteAddress(@Param(value = "id") String id);

}